<template>
    <footer class="footer">
        <div class="footer-content">
            <div class="page-center">
                <div class="contact-info">
                    <div class="company-name">思科（深圳）药物研发有限公司</div>
                    <a href="mailto:info@sincopharma.com" class="info-item">
                        <i class="el-icon-message"></i>info@sincopharma.com
                    </a>
                    <a href="tel:400-0505-016" class="info-item"> <i class="el-icon-phone"></i>400-0505-016 </a>
                    <span class="info-item">
                        <i class="el-icon-position"></i>深圳市光明区凤凰街道凤凰社区招商局光明科技园B1B2栋B2-1801
                    </span>
                </div>

                <div class="nav-section">
                    <div class="nav-column">
                        <h3 class="nav-title">关于我们</h3>
                        <ul>
                            <li><a href="/about/aboutus">公司简介</a></li>
                            <li><a href="/about/team">技术团队</a></li>
                            <li><a href="/about/achievement">研发成果</a></li>
                        </ul>
                    </div>
                    <div class="nav-column">
                        <h3 class="nav-title">产品中心</h3>
                        <ul>
                            <li><a href="/products/impurity">杂质对照品</a></li>
                            <li><a href="/products/isotope">稳定同位素</a></li>
                            <li><a href="/products/api">API</a></li>
                        </ul>
                    </div>
                    <div class="nav-column">
                        <h3 class="nav-title">定制合成</h3>
                        <ul>
                            <li><a href="/synthesis/process">定制流程</a></li>
                            <li><a href="/synthesis/variety">优势品种</a></li>
                        </ul>
                    </div>
                </div>

                <div class="qr-codes">
                    <div class="qr-item">
                        <img src="@/assets/imgs/w2.png" alt="关注官方微信" />
                        <p>关注官方微信</p>
                    </div>
                    <div class="qr-item">
                        <img src="@/assets/imgs/w1.png" alt="关注官方微博" />
                        <p>关注官方微博</p>
                    </div>
                </div>
            </div>
        </div>

        <div class="copyright">
            <div class="page-center">CopyRight ©2012-2023 版权所有 深圳(思科)生物科技有限公司</div>
        </div>
    </footer>
</template>
<style lang="scss" scoped>
$blue-bg: #3481b8;
$text-color: #fff;
$dark-bg: #000;
$breakpoint-tablet: 992px;
$breakpoint-mobile: 768px;

@mixin clearfix {
    &::after {
        content: '';
        display: table;
        clear: both;
    }
}

.footer {
    width: 100%;
    .footer-content {
        background-color: $blue-bg;
        padding: 40px 20px;
        @include clearfix;

        .contact-info {
            float: left;
            width: 35%;

            .company-name {
                font-size: 18px;
                font-weight: bold;
                color: $text-color;
                margin-bottom: 20px;
            }

            .info-item {
                color: $text-color;
                margin-bottom: 15px;
                display: block;

                i {
                    margin-right: 10px;
                    width: 16px;
                    display: inline-block;
                }
            }
        }

        .nav-section {
            float: left;
            width: 35%;
            padding: 0 5%;
            @include clearfix;

            .nav-column {
                float: left;
                width: 33.33%;

                .nav-title {
                    color: $text-color;
                    font-weight: bold;
                    margin-bottom: 20px;
                    position: relative;

                    &:after {
                        content: '';
                        position: absolute;
                        bottom: -5px;
                        left: 0;
                        width: 60px;
                        height: 2px;
                        background: $text-color;
                    }
                }

                ul {
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    li {
                        margin-bottom: 10px;

                        a {
                            color: $text-color;
                            text-decoration: none;

                            &:hover {
                                text-decoration: underline;
                            }
                        }
                    }
                }
            }
        }

        .qr-codes {
            float: right;
            width: 25%;
            text-align: right;

            .qr-item {
                display: inline-block;
                margin-left: 20px;
                text-align: center;

                img {
                    width: 120px;
                    height: 120px;
                    margin-bottom: 10px;
                }

                p {
                    color: $text-color;
                    margin: 0;
                    font-size: 14px;
                }
            }
        }
    }

    .copyright {
        background-color: $dark-bg;
        color: $text-color;
        padding: 15px 20px;
        text-align: left;
        font-size: 14px;
    }
}

@media screen and (max-width: $breakpoint-tablet) {
    .footer {
        .footer-content {
            .contact-info,
            .nav-section {
                width: 50%;
            }

            .qr-codes {
                width: 100%;
                float: none;
                clear: both;
                text-align: center;
                padding-top: 30px;
            }
        }
    }
}

@media screen and (max-width: $breakpoint-mobile) {
    .footer {
        .footer-content {
            .contact-info,
            .nav-section {
                width: 100%;
                float: none;
                margin-bottom: 30px;
            }

            .nav-section {
                .nav-column {
                    width: 100%;
                    float: none;
                    margin-bottom: 20px;
                }
            }

            .qr-codes {
                .qr-item {
                    display: block;
                    margin: 0 0 20px;

                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
}
</style>
